lib/deploy: Port final bootconfig writing to new style
authorColin Walters <walters@verbum.org>
Fri, 23 Mar 2018 20:02:38 +0000 (16:02 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Mar 2018 16:29:37 +0000 (16:29 +0000)
commit2648c968c4dafaf758b9932234e19f0a3c1719d6
tree222252584868e4bb713926e12fe57cdb945945ab
parent7ec3d0601430ebcc37006de2dc7a169fcc820646
lib/deploy: Port final bootconfig writing to new style

The main blocker for doing this before was the `goto out` handling
for remounting `/boot`.  Handle that by factoring out the bits that
require it to a helper function, and do the C/GError equivalent of
"try/finally".

Not prep for anything right now, just decided to do this since I had the file
open.

Closes: #1515
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c